package com.atguigu.msmservice.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MailAddressUtils implements InitializingBean {

    @Value("${mail.fromMail.fromAddress}")
    private String mailAddress;

    public static String MAIL_ADDRESS;
    @Override
    public void afterPropertiesSet() throws Exception {
        MAIL_ADDRESS = this.mailAddress;
    }
}
